package com.shoppingmall.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.shoppingmall.po.GoodTypePO;
import com.shoppingmall.service.GoodTypeService;

/**
 * @author LIU
 * 类别控制器
 */
@Controller
public class GoodTypeController {
	/**
	 * 逻辑类
	 */
	@Autowired
	private GoodTypeService goodTypeService;
	
	@RequestMapping("index")
	public String getGoodType(Model model) {
		
		List<GoodTypePO> listPo = goodTypeService.getType();
		
		System.out.println(listPo);
		return "index";
	}
}
